<?php
$user             = \Illuminate\Support\Facades\Auth::guard('admin')->user();
$strUserAvatar    = data_get($user, 'avatar') ?: asset('admin-assets/img/avatar.png');
$strUserName      = data_get($user, 'name') ?: 'admin';
$strUserCreatedAt = data_get($user, 'created_at') ?: date('Y-m-d H:i:s');
?>
    <!DOCTYPE html>
<html lang="en">
<head>
    @include('admin::common.header')
    <style>
        #nprogress .bar {
            background: #00c0ef;
        }

        #nprogress .peg {
            box-shadow: 0 0 10px #00c0ef, 0 0 5px #00c0ef;
        }

        #admin-nav > li.active > a {
            background-color: #f9f9f9;
            padding-bottom: 13px;
            border-bottom: 2px solid #00c0ef;
        }

        .navbar-top-links .dropdown-menu ul.admin-ul a {
            padding: 0 0 0 3px;
        }

        .admin-ul {
            display: inline-block;
            min-width: 160px;
            margin: 5px;
            padding: 0;
            list-style: none;
            zoom: 1;
        }

        .admin-ul > li {
            height: 28px;
            line-height: 28px;
        }

        .admin-ul > li > a {
            padding-left: 5px;
            display: block;
            line-height: 28px;
            height: 28px;
            color: #373d41;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        .admin-ul > li > a:hover, .admin-ul > li.active > a {
            color: white;
            background: #00c0ef;
        }

        .admin-ul > li.first {
            padding-left: 5px;
            color: #999;
            background-color: #f0f0f0;
        }

        .admin-ul > li.first-parent {
            color: #999;
            background-color: #f0f0f0;
        }

        .dropdown-admin-div {
            min-width: 510px;
        }

        .error {
            color: red;
        }

        .nav-tabs-custom > .nav-tabs > li.active {
            border-top-color: #00c0ef !important;
        }

        label.required:before {
            display: inline-block;
            margin-right: 4px;
            color: #f5222d;
            font-size: 14px;
            font-family: SimSun, sans-serif;
            line-height: 1;
            content: "*";
        }

        .input-hide .tip-block {
            position: absolute;
            left: 0;
            top: 0;
            right: 0;
            bottom: 0;
            background: #fff;
            padding: .35rem .7rem;
            border: 1px solid rgba(0, 0, 0, .15);
            border-radius: .15rem;
            color: #636c72;
        }

        .input-hide {
            position: relative;
        }
    </style>
</head>
<body class=" hold-transition sidebar-mini skin-white">
<div class="content-wrapper" style="margin-left: 0 !important;">
    <section class="content ">
        @if (session('error'))
            <div class="alert alert-danger alert-dismissible">
                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                <h4><i class="icon fa fa-ban"></i> {{trans('admin.alert')}} </h4>
                {{ session('error') }}
            </div>
        @endif
        @yield('main-content')
    </section>
</div>
@include('admin::common.js')
<!-- AdminLTE App -->
<script src="{{ asset('admin-assets/js/app.min.js') }}"></script>
<script src="{{ asset('admin-assets/plugins/stickytabs/jquery.stickytabs.js') }}"></script>
<script src="{{ asset('admin-assets/plugins/slimScroll/jquery.slimscroll.min.js') }}"></script>
<script src="{{ asset('admin-assets/plugins/layer/layer.js') }}"></script>
<script src="{{ asset('admin-assets/laravel-admin/tools.js') }}"></script>
@stack('script')
</body>
</html>

